package com.fu.mapper;

import com.fu.bean.Student;
import com.fu.sql.ReturnSql;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @author 付大大
 * @description
 * @create 2021-02-02 11:37
 */
public interface StudentMapper {

    @SelectProvider(type = ReturnSql.class, method = "getSelectAll")
    public abstract List<Student> selectAll();

    @SelectProvider(type = ReturnSql.class,method = "getInsert")
    public abstract Integer insert(Student student);

    @SelectProvider(type = ReturnSql.class,method = "getUpdate")
    public abstract Integer update(Student student);

    @SelectProvider(type = ReturnSql.class,method = "getDelete")
    public abstract Integer delete(Integer id);


}
